package com.tpp.threat_perception_platform.pojo;

import java.util.Date;

/**
 * 
 * @TableName host_log
 */
public class HostLog {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer eventId;

    /**
     * 
     */
    private String macAddress;

    /**
     * 
     */
    private Date timestamp;

    /**
     * 日志详细内容
     */
    private String data;

    /**
     * 
     */
    private String aiResult;

    private String riskLevel;

    public String getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(String riskLevel) {
        this.riskLevel = riskLevel;
    }



    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getEventId() {
        return eventId;
    }

    /**
     * 
     */
    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    /**
     * 
     */
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * 
     */
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * 
     */
    public Date getTimestamp() {
        return timestamp;
    }

    /**
     * 
     */
    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * 日志详细内容
     */
    public String getData() {
        return data;
    }

    /**
     * 日志详细内容
     */
    public void setData(String data) {
        this.data = data;
    }

    /**
     * 
     */
    public String getAiResult() {
        return aiResult;
    }

    /**
     * 
     */
    public void setAiResult(String aiResult) {
        this.aiResult = aiResult;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HostLog other = (HostLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEventId() == null ? other.getEventId() == null : this.getEventId().equals(other.getEventId()))
            && (this.getMacAddress() == null ? other.getMacAddress() == null : this.getMacAddress().equals(other.getMacAddress()))
            && (this.getTimestamp() == null ? other.getTimestamp() == null : this.getTimestamp().equals(other.getTimestamp()))
            && (this.getData() == null ? other.getData() == null : this.getData().equals(other.getData()))
            && (this.getAiResult() == null ? other.getAiResult() == null : this.getAiResult().equals(other.getAiResult()))
            && (this.getRiskLevel() == null ? other.getRiskLevel() == null : this.getRiskLevel().equals(other.getRiskLevel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEventId() == null) ? 0 : getEventId().hashCode());
        result = prime * result + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode());
        result = prime * result + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode());
        result = prime * result + ((getData() == null) ? 0 : getData().hashCode());
        result = prime * result + ((getAiResult() == null) ? 0 : getAiResult().hashCode());
        result = prime * result + ((getRiskLevel() == null) ? 0 : getRiskLevel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", eventId=").append(eventId);
        sb.append(", macAddress=").append(macAddress);
        sb.append(", timestamp=").append(timestamp);
        sb.append(", data=").append(data);
        sb.append(", aiResult=").append(aiResult);
        sb.append(", riskLevel=").append(riskLevel);
        sb.append("]");
        return sb.toString();
    }
}